package com.emm.yixun.common.model.enums;

import org.apache.commons.lang.StringUtils;

public enum ActivityAddressEnum {
    ACT_0("签约退房审批","/#/signedCheckOutActivity/{0}/{1}/{2}/{3}"),
    ACT_1("认购换房审批","/#/subChangeHouseActivity/{0}/{1}/{2}/{3}"),
    ACT_2("认购折扣审批","/#/subDiscountActivity/{0}/{1}/{2}/{3}"),
    ACT_3("签约换房审批","/#/signedChangeHouseActivity/{0}/{1}/{2}/{3}"),
    ACT_4("退认购审批","/#/subRetreatActivity/{0}/{1}/{2}/{3}"),
    ACT_5("签约折扣审批","/#/signedDiscountActivity/{0}/{1}/{2}/{3}"),
    ACT_6("认购审批","/#/subDiscountActivity/{0}/{1}/{2}/{3}"),
    ACT_7("签约审批","/#/signedDiscountActivity/{0}/{1}/{2}/{3}"),
    ACT_8("延期签约审批(15天内)","/#/subDelaySigned/{0}/{1}/{2}/{3}"),
    ACT_9("延期签约审批(30天内)","/#/subDelaySigned/{0}/{1}/{2}/{3}"),
    ACT_17("延期签约审批(15到30天)","/#/subDelaySigned/{0}/{1}/{2}/{3}"),
    ACT_10("延期签约审批(30天以上)","/#/subDelaySigned/{0}/{1}/{2}/{3}"),
    ACT_11("应收款延期(15天内)","/#/deferredPayment/{0}/{1}/{2}/{3}"),
    ACT_12("应收款延期(30天以上)","/#/deferredPayment/{0}/{1}/{2}/{3}"),
    ACT_13("应收款延期(15到30天)","/#/deferredPayment/{0}/{1}/{2}/{3}"),
    ACT_14("更名审批","/#/subAndSigChangeName/{0}/{1}/{2}/{3}"),
    ACT_15("价格方案无效审批","/#/programmeInvalid/{0}/{1}/{2}/{3}"),
    ACT_16("价格方案审批","/#/priceProgramme/{0}/{1}/{2}/{3}")
    ;
    
    //认购审核，认购折扣审批  (同一个页面，流程不同)，签约审批，签约折扣 (同上)
    //业务ID，流程ID，用户ID,//任务ID
    
    
    private String activityName;
    
    private String activityAppUrl;

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getActivityAppUrl() {
        return activityAppUrl;
    }

    public void setActivityAppUrl(String activityAppUrl) {
        this.activityAppUrl = activityAppUrl;
    }

     ActivityAddressEnum(String activityName, String activityAppUrl) {
	this.activityName = activityName;
	this.activityAppUrl = activityAppUrl;
    }

     public static ActivityAddressEnum getByName(String name) {
		if(StringUtils.isBlank(name)){
			return null;
		}
		for (ActivityAddressEnum menum : values()) {
			if (menum.getActivityName().equals(name)) {
				return menum;
			}
		}
		return null;
	}
    
}

